const Router = require('koa-router');

const {
  verifyAuth, verifyPermission
} = require('../middleware/auth.middleware');
const {
  create,
  list,
  remove
} = require('../controller/label.controller.js')

const labelRouter = new Router({prefix: '/order'});

labelRouter.post('/', verifyAuth, create);
labelRouter.get('/', verifyAuth,list);
labelRouter.delete('/:orderId', verifyAuth, verifyPermission, remove);


module.exports = labelRouter;
